package xymt.novaway.system.domain.bo;

import xymt.novaway.system.domain.SysTodo;
import xymt.novaway.common.core.validate.AddGroup;
import xymt.novaway.common.core.validate.EditGroup;
import xymt.novaway.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 待办事项业务对象 sys_todo
 *
 * @author NovaWay
 * @date 2025-08-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysTodo.class, reverseConvertGenerate = false)
public class SysTodoBo extends BaseEntity {

    /**
     * 待办事项ID
     */
    private Long todoId;

    /**
     * 待办事项标题
     */
    private String title;

    /**
     * 待办事项内容
     */
    @NotBlank(message = "待办事项内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 完成状态：0-未完成，1-已完成
     */
    @NotNull(message = "完成状态：0-未完成，1-已完成不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long completed;


}
